<%@taglib prefix = "c" uri = "http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix = "fmt" uri = "http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib prefix = "fn" uri = "http://java.sun.com/jsp/jstl/functions"%>

<h2><fmt:message key = "form.DepartmentForm"/><c:out value = "${organizationName}"/></h2>

<div class = "messages"><jsp:include page = "/messages.jsp"/></div>

<form action = "adminui" method = "post" name = "departmentsListForm">
<table class = "form">      
   <tr>
      <td class = "label"><fmt:message key = "department.name"/><span class="star">*</span></td>
      <td>
      	  <input name = "name" type = "text" maxlength="50" value = '<c:out value="${departmentBean.name}"/>'>
      	  <span class="error"><c:out value="${error.name}"/></span>
      </td>
   </tr>
</table>
  
   <input name = "_action" type = "hidden">   
   <input name = "organization_id" type = "hidden" value='<c:out value = "${organizationId}"/>'>   
   <input name = "department_id" type = "hidden" value='<c:out value = "${departmentBean.id}"/>'>
</form>  
  
<div class="links">      
  <ul class = "navbar2">
   <li>
      <a class = "control" href = 'javascript:doAction("processDepartmentForm");'>
         <fmt:message key = "Command.add"/>
      </a>
   </li>           
  </ul> 
</div>